﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    
    <script src="script/jquery-2.1.1.min.js"></script>
    <!--<script type="text/javascript" src="http://www.google.com/jsapi"></script>-->
</head>
<body>
    <input type="button" value="Login" id="btnLogin"/>
    <script src="https://apis.google.com/js/client:platform.js" async defer></script>
    <script>
        var param = {
            'clientid': '377201186626-m8mjkm5lf80q8jph5dt26b54a1ags391.apps.googleusercontent.com',
            'cookiepolicy': 'single_host_origin',
            'callback': function (res) {
                console.log("res", res);
            }
            // Additional optional params
        };
        $("#btnLogin").click(function () {
            gapi.auth.signIn(param);
        });
        
    </script>
</body>
</html>
